package com.yx.accountBook.user.domain;

import javax.persistence.*;

@Table(name = "t_user_subject")
public class UserSubject {
    /**
     * 户用学科主键
     */
    @Id
    private Long id;

    /**
     * 用户ID
     */
    @Column(name = "user_Id")
    private Long userId;

    /**
     * 科学ID
     */
    @Column(name = "subject_Id")
    private String subjectId;

    /**
     * 获取户用学科主键
     *
     * @return id - 户用学科主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置户用学科主键
     *
     * @param id 户用学科主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户ID
     *
     * @return user_Id - 用户ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取科学ID
     *
     * @return subject_Id - 科学ID
     */
    public String getSubjectId() {
        return subjectId;
    }

    /**
     * 设置科学ID
     *
     * @param subjectId 科学ID
     */
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }
}